detectFace: detectFace.o FaceDetector.o ../util/tinyxml2.o
	g++ -lopencv_core -lopencv_objdetect -lopencv_highgui detectFace.o FaceDetector.o ../util/tinyxml2.o -o detectFace
	
detectFace.o: detectFace.cpp
	g++ -I /usr/local/include/opencv -c detectFace.cpp -o detectFace.o
	
FaceDetector.o: FaceDetector.h FaceDetector.cpp
	g++ -I /usr/local/include/opencv -Wall -c FaceDetector.cpp -o FaceDetector.o
	
../util/tinyxml2.o: ../util/tinyxml2.cpp
	g++ -Wall -c ../util/tinyxml2.cpp -o ../util/tinyxml2.o
	
clean:
	rm *.o detectFace ../util/tinyxml2.o